package com.siam.package_feign.mod_feign.goods;

import com.siam.package_goods.entity.Shop;
import com.siam.package_goods.model.example.ShopExample;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "goods-siam", path = "/rest/shopFeign")
public interface ShopFeignClient {

    @RequestMapping(value = "/insertSelective")
    int insertSelective(@RequestBody Shop record);

    @RequestMapping(value = "/selectByPrimaryKey")
    Shop selectByPrimaryKey(@RequestParam("id") Integer id);

    @RequestMapping(value = "/selectByExample")
    List<Shop> selectByExample(@RequestBody ShopExample example);
}